<template>
    <div>
        <textarea v-model="content" rows="10" v-autosize v-wordcount="100"></textarea>
        <Button @click="add_comment">提交</Button>


    </div>
</template>

<script>
export default {
    data () {
        return {
            gid:'',

    
            content:'',

            
        }
    },
    methods: {
        add_comment(){
        
		
		 this.axios.post('http://localhost:8000/myroad/myroadaddc/',{"content":this.content,gid:localStorage.getItem('gid')})
		 .then(result=>{
             console.log(result)
                this.$router.push('studyshow')

		 })		  
	},
        
    },
    created() {


    },

}
</script>

<style>

</style>
